package com.smile.androidframework.module.main;

import android.os.Bundle;
import android.os.Message;
import android.widget.TextView;

import com.common.ui.BaseActivity;
import com.smile.androidframework.R;
import com.smile.androidframework.module.main.presenter.MainPresenter;
import com.smile.androidframework.module.main.view.IMainView;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/2/11.
 */

public class MainActivity extends BaseActivity<IMainView, MainPresenter> implements IMainView {


    @BindView(R.id.textView)
    TextView textView;

    @Override
    protected void initView() {
        textView.setText(getDatabasePath("smile.db").exists()+"");
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initEvents() {

    }

    @Override
    protected void setBaseContentView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_main);
    }

    @Override
    protected void handler(Message msg) {

    }

    @Override
    protected MainPresenter createPresenter() {
        return new MainPresenter();
    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
